home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMRangeException.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  2KB  |  94 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMRangeException.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMRangeException_h__
  6. #define __gen_nsIDOMRangeException_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIDOMRangeException */
  19. #define NS_IDOMRANGEEXCEPTION_IID_STR "0f807301-39d2-11d6-a7f2-8f504ff870dc"
  20.  
  21. #define NS_IDOMRANGEEXCEPTION_IID \
  22.   {0x0f807301, 0x39d2, 0x11d6, \
  23.     { 0xa7, 0xf2, 0x8f, 0x50, 0x4f, 0xf8, 0x70, 0xdc }}
  24.  
  25. class NS_NO_VTABLE nsIDOMRangeException : public nsISupports {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMRANGEEXCEPTION_IID)
  29.  
  30.   enum { BAD_BOUNDARYPOINTS_ERR = 1U };
  31.  
  32.   enum { INVALID_NODE_TYPE_ERR = 2U };
  33.  
  34.   /* readonly attribute unsigned short code; */
  35.   NS_IMETHOD GetCode(PRUint16 *aCode) = 0;
  36.  
  37. };
  38.  
  39. /* Use this macro when declaring classes that implement this interface. */
  40. #define NS_DECL_NSIDOMRANGEEXCEPTION \
  41.   NS_IMETHOD GetCode(PRUint16 *aCode); 
  42.  
  43. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  44. #define NS_FORWARD_NSIDOMRANGEEXCEPTION(_to) \
  45.   NS_IMETHOD GetCode(PRUint16 *aCode) { return _to GetCode(aCode); } 
  46.  
  47. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  48. #define NS_FORWARD_SAFE_NSIDOMRANGEEXCEPTION(_to) \
  49.   NS_IMETHOD GetCode(PRUint16 *aCode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCode(aCode); } 
  50.  
  51. #if 0
  52. /* Use the code below as a template for the implementation class for this interface. */
  53.  
  54. /* Header file */
  55. class nsDOMRangeException : public nsIDOMRangeException
  56. {
  57. public:
  58.   NS_DECL_ISUPPORTS
  59.   NS_DECL_NSIDOMRANGEEXCEPTION
  60.  
  61.   nsDOMRangeException();
  62.  
  63. private:
  64.   ~nsDOMRangeException();
  65.  
  66. protected:
  67.   /* additional members */
  68. };
  69.  
  70. /* Implementation file */
  71. NS_IMPL_ISUPPORTS1(nsDOMRangeException, nsIDOMRangeException)
  72.  
  73. nsDOMRangeException::nsDOMRangeException()
  74. {
  75.   /* member initializers and constructor code */
  76. }
  77.  
  78. nsDOMRangeException::~nsDOMRangeException()
  79. {
  80.   /* destructor code */
  81. }
  82.  
  83. /* readonly attribute unsigned short code; */
  84. NS_IMETHODIMP nsDOMRangeException::GetCode(PRUint16 *aCode)
  85. {
  86.     return NS_ERROR_NOT_IMPLEMENTED;
  87. }
  88.  
  89. /* End of implementation class template. */
  90. #endif
  91.  
  92.  
  93. #endif /* __gen_nsIDOMRangeException_h__ */
  94.